from PyQt5.QtWidgets import QWidget,QApplication
import time
import sys

from package.Utils.MainWindow import app,myWin  # 导入app,myWin对象
from package.Utils.log import logger,mylog  # 导入 logger 对象(python代码)

# from Utils.User_Import import *  # 导入 myWin, screen, logger 对象(python代码)

def Window_Main():
    myWin.show()  # 在桌面显示控件 myWin
    sys.exit(app.exec_())  # 结束进程，退出程序
    if mylog.log_enabled is True:
        logger.info('Logger Exit')

if __name__ == '__main__':
    if mylog.log_enabled is True:
        logger.info(f"Logger Start")
    Window_Main()  # 调用Window_Main函数